<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<html>
<head>
<title>Spring-Shiro-OAuth2</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/css/layout-default-latest.css">
</head>
<body>

	<iframe name="content" class="ui-layout-center"
		src="${pageContext.request.contextPath}/welcome" frameborder="0"
		scrolling="auto"></iframe>
	<div class="ui-layout-north">
		Welcome[
		<shiro:principal />
		]Spring-Shiro-OAuth2<a href="${pageContext.request.contextPath}/logout">Logout</a>
	</div>
	<div class="ui-layout-south">
		<a href="https://xxxxx" target="_blank">Get Source Here</a>
	</div>
	<div class="ui-layout-west">
		Functions Menu<br />
		<c:forEach items="${menus}" var="m">
			<a href="${pageContext.request.contextPath}${m.url}" target="content">${m.name}</a>
			<br />
		</c:forEach>
	</div>


	<script
		src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/js/jquery.layout-latest.min.js"></script>
	<script>
		$(function() {
			$(document).ready(function() {
				$('body').layout({
					applyDemoStyles : true
				});
			});
		});
	</script>
</body>
</html>